package main

import (
	"fmt"
	"myjs"
)

type Example struct {
	ID    int                    `json:"id"`
	SID   int                    `json:"-"`
	MEN   bool                   `json:"Men,omitempty"`
	WOMEN bool                   `json:"Women,omitempty"`
	COLOR string                 `json:"-,omitempty"`
	MYMAP map[string]interface{} `json:",omitempty"`
}

func main() {
	group := Example{
		ID:    111,
		SID:   222,
		MEN:   true,
		WOMEN: false,
		COLOR: "Red",
		MYMAP: map[string]interface{}{"Address": "China", "Phone": "12345678911", "Salary": 10000},
	}
	js, err := myjs.JSONMarshal(group)
	if err == nil {
		fmt.Println(string(js))
	}
}